//
//  XDBankInfoCell.m
//  xindailianmeng
//
//  Created by 张东 on 2017/2/27.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "XDBankInfoCell.h"
#import "XDBankInfoModel.h"
#import "UIImageView+WebCache.h"
@interface XDBankInfoCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImg;

@property (weak, nonatomic) IBOutlet UILabel *titleLb;
@property (weak, nonatomic) IBOutlet UILabel *detailLb;

@end


@implementation XDBankInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self = [[NSBundle mainBundle] loadNibNamed:@"XDBankInfoCell" owner:self options:nil].firstObject;
    }
    return self;
}

- (void)setModel:(XDBankInfoModel *)model {
    
    _model = model;
    [self.iconImg sd_setImageWithURL:[NSURL URLWithString:model.bankIconUrl]];
    
    self.titleLb.text = model.bankName;
    
    self.detailLb.text = model.bankLimit;
    
}


@end
